<?php
include("./include/config.inc.php");

$i = 0;
$editorArray = "";
$select = "SELECT editor
             FROM contain
            WHERE menuId = 1";
$selectRes = mysql_query($select);
while($Row = mysql_fetch_array($selectRes))
{
  $editorArray[$i]['editor']   = $Row['editor'];
  $i++;
}

$smarty->assign("editorArray",$editorArray);
$smarty->display("index.tpl");
?>